package com.timss.opmm.bean;

import java.io.Serializable;

/**
 * 
* @ClassName: Rules 
* @Description: 排班规则表
* @author: fengzt 
* @date: 2014年5月28日
*
 */
public class Rules implements Serializable {

    private static final long serialVersionUID = 439877747110861539L;
    
    /**
     * key
     */
    private int id;
    
    /**
     * 班次编码
     */
    private String num;
    
    /**
     * 班次名称
     */
    private String name;
    
    /**
     * 周期
     */
    private int period;
    
    /**
     * 站点
     */
    private int siteId;
    
    /**
     * 是否可用（生效）
     */
    private String available;
    
    /**
     * 值别总数
     */
    private int dutyCount;
    
    
    /**
     * 每个月替换日期（eg: 10 表示：周期替换 5月10号 --> 6月10号）
     */
    private int changeLimit;
    
    /**
     * 轮询班次规则
     */
    private String pollSequence;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public int getSiteId() {
        return siteId;
    }

    public void setSiteId(int siteId) {
        this.siteId = siteId;
    }

    public String getAvailable() {
        return available;
    }

    public void setAvailable(String available) {
        this.available = available;
    }

    public int getDutyCount() {
        return dutyCount;
    }

    public void setDutyCount(int dutyCount) {
        this.dutyCount = dutyCount;
    }

    public int getChangeLimit() {
        return changeLimit;
    }

    public void setChangeLimit(int changeLimit) {
        this.changeLimit = changeLimit;
    }

    public String getPollSequence() {
        return pollSequence;
    }

    public void setPollSequence(String pollSequence) {
        this.pollSequence = pollSequence;
    }

    @Override
    public String toString() {
        return "Rules [id=" + id + ", num=" + num + ", name=" + name
                + ", period=" + period + ", siteId=" + siteId + ", available="
                + available + ", dutyCount=" + dutyCount + ", changeLimit="
                + changeLimit + ", pollSequence=" + pollSequence + "]";
    }
    
    
    
}
